package com.atguigu.tingshu.search.service;

import com.atguigu.tingshu.model.album.BaseCategory3;
import com.atguigu.tingshu.model.search.AlbumInfoIndex;
import com.atguigu.tingshu.query.search.AlbumIndexQuery;
import com.atguigu.tingshu.vo.search.AlbumSearchResponseVo;

import java.util.List;
import java.util.Map;

public interface SearchService {


    void upperAlbum(Long albumId);

    void upperBatchAlbum();

    void lowerAlbum(Long albumId);

    AlbumSearchResponseVo search(AlbumIndexQuery albumIndexQuery);

    /**
     * 查询指定一级分类下的热门专辑
     * @param category1Id
     * @return
     */
    List<Map<String, Object>> channel(Long category1Id);

    /**
     * 关键字自动补全
     * @param keyword
     * @return
     */
    List<String> completeSuggest(String keyword);

    Map<String, Object> getItem(Long albumId);

    void updateLatelyAlbumRanking();

    List<AlbumInfoIndex> findRankingList(Long category1Id, String dimension);
}

